﻿<UserControl x:Class="Cinser.Common.Wpf.Controls.Pager"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:my="clr-namespace:Cinser.Common.Wpf.Controls"
             xmlns:myHelper="clr-namespace:Cinser.Common.Wpf.Helpers"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500" Height="35" KeyDown="UserControl_KeyDown">
    <Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="3,0,10,0">
            <my:MarkLabel x:Name="_lbInfo" Content="总记录数：0条   共0页   每页"/>
            <ComboBox x:Name="_cbbOnePageCount" Height="25" Width="50" />
            <my:MarkLabel Content="条" x:Name="_lbInfo2"/>
            <Button x:Name="_BtnFirst" Height="25" ToolTip="第一页" Margin="5,0,0,0" Click="_BtnFirst_Click">
                <Image myHelper:ImagesHelperWPF.Image="First" Height="16" Width="16"/>
            </Button>
            <Button x:Name="_BtnPrev" Height="25" ToolTip="上一页" Margin="5,0,0,0" Click="_BtnPrev_Click">
                <Image myHelper:ImagesHelperWPF.Image="Prev" Height="16" Width="16"/>
            </Button>
            <my:MarkLabel Content="第"/>
            <TextBox x:Name="_tbPageIndex" Height="25" Width="30" Text="1"/>
            <my:MarkLabel Content="页"/>
            <Button x:Name="_BtnGo" Height="25" Width="45" Content="GO" Margin="5,0,0,0" Click="_BtnGo_Click"/>
            <Button x:Name="_BtnNext" Height="25" ToolTip="上一页" Margin="5,0,0,0" Click="_BtnNext_Click">
                <Image myHelper:ImagesHelperWPF.Image="Next" Height="16" Width="16"/>
            </Button>
            <Button x:Name="_BtnLast" Height="25" ToolTip="最后一页" Margin="5,0,0,0" Click="_BtnLast_Click">
                <Image myHelper:ImagesHelperWPF.Image="Last" Height="16" Width="16"/>
            </Button>
        </StackPanel>    
    </Grid>
</UserControl>
